using System.Collections.Generic;
using Itdavany.Data;
using Itdavany.Objects;

namespace RollingKitty.Objects
{
    public class StatusBar : Widget
    {
        TextPanel tx_name, tx_title, tx_month, tx_date, tx_time;

        public string Name
        {
            set { tx_name.Text = value; }
        }

        public string Title
        {
            set { tx_title.Text = value; }
        }

        public string Month
        {
            set { tx_month.Text = value; }
        }

        public string Date
        {
            set { tx_date.Text = value; }
        }

        public string Time
        {
            set { tx_time.Text = value; }
        }


        public StatusBar(FrameArray frms)
            : base(frms)
        {
            tx_name = (TextPanel)frms.FindObject("tx_name");
            tx_title = (TextPanel)frms.FindObject("tx_title");
            tx_month = (TextPanel)frms.FindObject("tx_month");
            tx_date = (TextPanel)frms.FindObject("tx_date");
            tx_time = (TextPanel)frms.FindObject("tx_time");

            SubScene = new List<Scene>(frms.Values)[0];
        }
    }
}